package com.ganbo.demo.config;

import com.ganbo.demo.condition.UserInnodbCondition;
import com.ganbo.demo.entity.UserInnodb;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

/**
 * @author ganbo
 * @date 2022/10/19 14:21
 */

@Configuration
public class UserConnnfig {


    @Bean
    @Conditional(UserInnodbCondition.class)
    public UserInnodb userInnodb() {
        UserInnodb userInnodb = new UserInnodb();
        userInnodb.setGender(1);
        userInnodb.setName("aaaa");
        return userInnodb;
    }

}
